dojo.provide("dojoc.form.TimestampTextBox");

dojo.require("dojoc.form.Timestamp");
dojo.require("dijit.form._DateTimeTextBox");

dojo.declare(
	"dojoc.form.TimestampTextBox",
	dijit.form._DateTimeTextBox,
	{
		baseClass: "dojocTimestampTextBox dijitTextBox",

		popupClass: "dojoc.form.Timestamp",

		_selector: 'date',

		postMixInProperties: function() {
			dojo.mixin(this.constraints, {
				datePattern: 'yyyy-MM-dd HH:mm:ss', 
				timePattern: 'HH:mm:ss'
			});
			this.inherited(arguments);
		}

	}
);
